package com.liming.common.pojo.vo.review;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author liming
 * @date 2025/3/20
 */
@Data
@Schema(description = "小程序 - 商品评论VO")
public class MiniProductCommentVO {

    @Schema(description = "评论ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户昵称")
    private String userNickname;

    @Schema(description = "用户头像")
    private String avatarUrl;

    @Schema(description = "商品名称")
    private String productName;

    @Schema(description = "评价内容")
    private String reviewText;

    @Schema(description = "商家回复内容")
    private String replyText;

    @Schema(description = "评分")
    private Float rating;

    @Schema(description = "是否匿名评价 0 表示实名，1 表示匿名")
    private Integer anonymous;

    @Schema(description = "是否已回复 0 表示未回复，1 表示已回复")
    private Integer reply;

    @Schema(description = "评价时间")
    private LocalDateTime createTime;

    @Schema(description = "商家回复时间")
    private LocalDateTime replyTime;
}
